package com.fbd.controller;

import com.fbd.internalcommon.dto.ForecastPriceDTO;
import com.fbd.internalcommon.dto.ResponseResult;
import com.fbd.service.ForecastPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ForecastPriceController {

    @Autowired
    private ForecastPriceService priceService;
    @PostMapping("/forecast-price")
    public ResponseResult forecastPrice(@RequestBody ForecastPriceDTO forecastPriceDTO){

        return priceService.forecastPrice(forecastPriceDTO);
    }
}
